package com.cloudprovidepayment.service.impl;

import org.springframework.stereotype.Service;

import com.cloud.api.commons.pojo.Payment;
import com.cloudprovidepayment.base.BaseApiService;
import com.cloudprovidepayment.service.PaymentService;

/**
 * 接口实现
 * @author kaifa008
 *
 */
@Service
public class PaymentServiceImpl extends BaseApiService implements PaymentService {
	
    @Override
    public int create(Payment payment) throws Exception {
        return (int) this.insert("Payment.insertPayment", payment);
    }
 
    @Override
    public Payment queryById(Payment payment) throws Exception {
        return this.queryObject("Payment.selectPaymentByCondition", payment);
    }

}
